package com.zbkj.service.service.saleroom;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zbkj.common.model.saleroom.RoomProduct;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author keNan
 * @description RoomProductService 接口
 * @date 2025-04-09
 */
public interface RoomProductService extends IService<RoomProduct> {

    /**
     * 查询门店商品库存信息
     *
     * @param roomId
     * @param attrValueId
     * @return
     */
    RoomProduct getByRoomIdAndProductSpecsId(Integer roomId, Integer attrValueId);

    /**
     * 根据门店id列表查询规格列表
     *
     * @param roomIdList
     * @return
     */
    List<RoomProduct> getProductSpecsIdListByRoomIdList(List<Long> roomIdList);

    /**
     * 根据门店id查询是否有货
     *
     * @param roomId
     * @return
     */
    List<RoomProduct> selectByRoomId(Long roomId, List productSpecsIdList);
}